package com.yq.light.user.code.controller;


import com.yq.light.commons.code.entity.CommonResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@CrossOrigin
@Controller
@RequestMapping("/api/testController")
public class TestController {


    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/test")
    @ResponseBody
    public CommonResult test(){
        return new CommonResult(200,"测试成功,serverPort："+serverPort,1);
    }
}
